package com.dj.myapp;

import com.dj.myapp.slice.MainAbilitySlice;
import com.dj.myapp.slice.ScanSlice;
import ohos.aafwk.ability.Ability;
import ohos.aafwk.content.Intent;

public class MainAbility extends Ability {
    @Override
    public void onStart(Intent intent) {
        super.onStart(intent);
        super.setMainRoute(MainAbilitySlice.class.getName());

        addActionRoute("action.sample.scan", ScanSlice.class.getName());
//        addActionRoute(Intent.ACTION_QUERY_WEATHER, DemoSlice.class.getName());

    }

}
